import java.util.Arrays;

public class Text4_2 {
    public int removeElement(int[] nums, int val) {

    }













    public static void main1(String[] args) {
        int[] num=new int[]{1,2,3,4,5,6,7};
        rotate(num,3);
        System.out.println(Arrays.toString(num));
    }
    public static void  rotate(int[] nums, int k) {
        int tam = 0;
        for (int i = 0; i < k; i++) {
            tam = nums[nums.length - 1];
            for (int j = nums.length - 1; j > 0; j--) {
                nums[j] = nums[j - 1];
            }
            nums[0] = tam;
        }


    }
}